#coding:utf-8

import sys,os
import json

f1 = open("res.txt","r")
dicProduct = {}
for line in f1:
    #print line
    obj = json.loads(line.strip())
    dicProduct[obj['issn'][1:]] = 1
    
f2 = open("product_id","r")
for line in f2:
    issn = line.strip()
    if issn in dicProduct:
        pass
    else:
        print line.strip()
        dicProduct[issn] = 1
    
